#ifndef __TASK_H__
#define __TASK_H__

#include <rtthread.h>
#include "hardware.h"
/*===============Data===============*/
typedef struct{
	uint16_t key_rocker_data[4];	//key_rocker_1 use data[0] and data[1] && key_rocker_2 use data[2] and data[3] 
	uint8_t send_data[32];
}DATA;

/*===============LCD===============*/
typedef struct {
	rt_thread_t lcd_tid;
	void *lcd_param;
	rt_uint32_t lcd_buff;
	rt_uint8_t  lcd_priority;
	rt_uint32_t lcd_tick;
}LCD_CONTROL;

void LCD_CTRL_Init(void);
rt_err_t LCD_TASK_Init(void);
void LCD_TASK_Entry(void * param);


/*===============KEY===============*/
#include "adc.h"
typedef struct {
	rt_thread_t key_tid;
	void *key_param;
	rt_uint32_t key_buff;
	rt_uint8_t  key_priority;
	rt_uint32_t key_tick;
}KEY_CONTROL;

void KEY_CTRL_Init(void);
rt_err_t KEY_TASK_Init(void);
void KEY_TASK_Entry(void * param);
void Data_Num_to_Str(void);



#endif
